﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OnlineHelpDesk.MasterPage
{
    public partial class OHDMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String s = "";
            if (Session["UserName"] == null || Session["UserName"] == "")
            {
                lblNameLogin.Text = "";
            }
            else
            {
                s = Session["UserName"].ToString();
                lblNameLogin.Text = s;
            }
        }

        protected void ibtnLogout_Click(object sender, ImageClickEventArgs e)
        {
            Session["Username"] = "";
            Response.Redirect("LoginOHD.aspx");
        }
    }
}